import request from '@/utils/request'

// 获取密钥对
const http = {
    redisstorage: (value) => {
        return request({
            url: `/redisstorage?value=${value}`,
            method: 'get'
        })
    },
    getredisstorage: () => {
        return request({
            url: `/getredisstorage`,
            method: 'get'
        })
    },
    getairnewest: () => {
        return request({
            url: `/getairnewest`,
            method: 'get'
        })
    },
    gethistoryair: (num,size,start,end) => {
        return request({
            url: `/gethistoryair?pageNum=${num}&pageSize=${size}&startTime=${start}&endTime=${end}`,
            method: 'get'
        })
    },

}
export default http